﻿@using VideoSeller.Business.Data.Enums
@model AdminManyStatisticModel

@{
    ViewBag.Title = @Html.GetGlobalResource("PagesTitles", "AdminManyStatiscticModel");
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>@Html.GetGlobalResource("PagesTitles", "AdminManyStatiscticModel")</h2>

@using (Html.BeginForm("StatisticReport", "Admin", FormMethod.Get))
{
    <label>@Html.GetLocalResource("PeriodFrom") </label>
    @Html.TextBoxFor(x => x.StartDate)<label> @Html.GetLocalResource("PeriodTo") </label>
    @Html.TextBoxFor(x => x.EndDate)
    <input type="submit" value="@Html.GetLocalResource("Apply")" />
    <br />
    <br />
}
<table class="statistictable">
    <tr><td colspan="2" class="stt_title">@Html.GetLocalResource("MoneyInOutTitle")</td></tr>
    <tr><td class="stt_name">@Html.GetLocalResource("InputMoney")</td><td class="stt_val">@Html.GetCurrencyString(Model.inMany)</td></tr>
    <tr><td class ="stt_name">@Html.GetLocalResource("OutputMoneyTotal")</td><td class="stt_val">@Html.GetCurrencyString(Model.outMany)</td>
    <tr><td class="stt_name">@Html.GetLocalResource("OutputMoneyClientPart")</td><td class="stt_val">@Html.GetCurrencyString(Decimal.Multiply(Model.outMany, (decimal)0.9))</td></tr>
    <tr><td class="stt_name">@Html.GetLocalResource("OutputMoneyVisellPart")</td><td class="stt_val">@Html.GetCurrencyString(Decimal.Multiply(Model.outMany, (decimal)0.1))</td></tr>
    <tr><td colspan="2" class="stt_title">@Html.GetLocalResource("MoneyContentTitle")</td></tr>
    <tr><td class="stt_name">@Html.GetLocalResource("BroadcastPayment")</td><td class="stt_val">@Html.GetCurrencyString(Model.BroadcastPayment)</td></tr>
    <tr><td class="stt_name">@Html.GetLocalResource("OnlineContentPayment")</td><td class="stt_val">@Html.GetCurrencyString(Model.OnlineContentPayment)</td></tr>
    <tr><td colspan="2" class="stt_title">@Html.GetLocalResource("MoneyCurrentTitle")</td></tr>
    <tr><td class="stt_name">@Html.GetLocalResource("CurrentMoneyOnVisell")</td><td class="stt_val">@Html.GetCurrencyString(Model.sumCurrentMany)</td></tr>

</table>


